package com.peans.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.peans.controller.BaseRestController;

@RestController
public class TestController extends BaseRestController {

	@RequestMapping("/foo")
	public String foo() {
		if (1  == 1) {
			throw new RuntimeException("tt");
		}
		return "xxgppp";
	}
	
	
	@GetMapping
	public String foo2() {
		if (1  == 1) {
			throw new RuntimeException("tt");
		}
		return "xxgppp";
	}
	
}
